import request from '@/utils/request'

// 查询到站列表
export function listDraw(query) {
  return request({
    url: '/draw/draw/list',
    method: 'get',
    params: query
  })
}

// 查询到站详细
export function getDraw(id) {
  return request({
    url: '/draw/draw/' + id,
    method: 'get'
  })
}

// 新增到站
export function addDraw(data) {
  return request({
    url: '/draw/draw',
    method: 'post',
    data: data
  })
}

// 修改到站
export function updateDraw(data) {
  return request({
    url: '/draw/draw',
    method: 'put',
    data: data
  })
}

// 删除到站
export function delDraw(id) {
  return request({
    url: '/draw/draw/' + id,
    method: 'delete'
  })
}

//统计司机业绩
export function countDriver(query) {
  return request({
    url: '/draw/draw/countDriver',
    method: 'get',
    params: query
  })
}


